package com.cty.pojo;

import org.apache.log4j.Logger;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Auther: cty
 * @Date: 2020/3/5 17:56
 * @Description:  People实体类
 * @version: 1.0
 */
public class People {
    Logger log = Logger.getLogger(People.class);

    private int id;
    private String name;
    private Set<Integer> set;
    private List<Integer> list;
    private Integer[] integers;
    private Map<String, Integer> map;
    private Desk desk;

    public Desk getDesk() {
        return desk;
    }

    public void setDesk(Desk desk) {
        this.desk = desk;
    }

    public List<Integer> getList() {
        return list;
    }

    public void setList(List<Integer> list) {
        this.list = list;
    }

    public Integer[] getIntegers() {
        return integers;
    }

    public void setIntegers(Integer[] integers) {
        this.integers = integers;
    }

    public Map<String, Integer> getMap() {
        return map;
    }

    public void setMap(Map<String, Integer> map) {
        this.map = map;
    }

    public Set<Integer> getSet() {
        return set;
    }

    public void setSet(Set<Integer> set) {
        this.set = set;
    }

    public People() {
        super();
        log.debug("执行People无参构造方法");
    }
    public People(int id, String name) {
        super();
        this.id = id;
        this.name = name;
        log.debug("执行People有参构造-int，String");
    }
    public People(Integer id, String name) {
        super();
        this.id = id;
        this.name = name;
        log.debug("执行People有参构造-Integer，String");
    }
    public People(String name, int id) {
        super();
        this.id = id;
        this.name = name;
        log.debug("执行People有参构造-String，int");
    }

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "People{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", set=" + set +
                ", list=" + list +
                ", integers=" + Arrays.toString(integers) +
                ", map=" + map +
                ", desk=" + desk +
                '}';
    }
}
